class GetVersionMessage {
  String id;
  String appId;
  String appCode;
  String appName;
  String versionMinlepost;
  String versionCode;
  String versionCodeBefore;
  String versionType;
  String versionBig;
  String downloadUrl;
  String updateTitle;
  String updateMessage;
  String status;
  String updateParams;
  List<String> optimtion;
  List<String> repair;
  String apkUrl;

  GetVersionMessage(
      {this.id,
      this.appId,
      this.appCode,
      this.appName,
      this.versionMinlepost,
      this.versionCode,
      this.versionCodeBefore,
      this.versionType,
      this.versionBig,
      this.downloadUrl,
      this.updateTitle,
      this.updateMessage,
      this.status,
      this.updateParams,
      this.optimtion,
      this.repair,
      this.apkUrl});

  GetVersionMessage.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    appId = json['app_id'];
    appCode = json['app_code'];
    appName = json['app_name'];
    versionMinlepost = json['version_minlepost'];
    versionCode = json['version_code'];
    versionCodeBefore = json['version_code_before'];
    versionType = json['version_type'];
    versionBig = json['version_big'];
    downloadUrl = json['download_url'];
    updateTitle = json['update_title'];
    updateMessage = json['update_message'];
    status = json['status'];
    updateParams = json['update_params'];
    optimtion = json['optimtion'].cast<String>();
    repair = json['repair'].cast<String>();
    apkUrl = json['apk_url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['app_id'] = this.appId;
    data['app_code'] = this.appCode;
    data['app_name'] = this.appName;
    data['version_minlepost'] = this.versionMinlepost;
    data['version_code'] = this.versionCode;
    data['version_code_before'] = this.versionCodeBefore;
    data['version_type'] = this.versionType;
    data['version_big'] = this.versionBig;
    data['download_url'] = this.downloadUrl;
    data['update_title'] = this.updateTitle;
    data['update_message'] = this.updateMessage;
    data['status'] = this.status;
    data['update_params'] = this.updateParams;
    data['optimtion'] = this.optimtion;
    data['repair'] = this.repair;
    data['apk_url'] = this.apkUrl;
    return data;
  }
}
